﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace HF.WorkFlow.DataContract
{
    /// <summary>
    /// 任务模板数据契约
    /// </summary>
    /// <remarks>描述任务模板的数据契约</remarks>
    [DataContract]
    public class WorkTaskEntity
    {
        /// <summary>
        /// 任务模板Id
        /// </summary>
        [DataMember]
        public string WorkTaskId { get; set; }
        /// <summary>
        /// 流程模板Id
        /// </summary>
        [DataMember]
        public string WorkFlowId { get; set; }
        /// <summary>
        /// 任务类型
        /// </summary>
        [DataMember]
        public int TaskTypeId { get; set; }
        /// <summary>
        /// And或者Or 控制节点时使用
        /// </summary>
        [DataMember]
        public string TaskTypeAndOr { get; set; }
        /// <summary>
        /// 任务名称
        /// </summary>
        [DataMember]
        public string TaskCaption { get; set; }
        /// <summary>
        /// X坐标
        /// </summary>
        public int iXPosition { get; set; }
        /// <summary>
        /// Y坐标
        /// </summary>
        [DataMember]
        public int iYPosition { get; set; }
        /// <summary>
        /// 处理者是提交人时是否跳过本处理
        /// </summary>
        [DataMember]
        public bool IsJumpSelf { get; set; }
        /// <summary>
        /// 处理者调岗功能
        /// </summary>
        [DataMember]
        public string Identifying { get; set; }
        
        /// <summary>
        /// 处理者策略
        /// </summary>
        [DataMember]
        public string OperRule { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [DataMember]
        public string Description { get; set; }
    }
}
